// crowd/components/goodslist/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  attached() {
    this.listData()
  },
  methods: {
    listData() {
      wx.login({
        timeout: 0,
      })
      var _this = this
      getApp().request({
        url: getApp().api.crowdfund.list,
        method: "GET",
        data: {},
        success(res) {
          console.log(res)
          _this.setData({
            list: res.data.list
          })
        },
      })
    },
    clickship(e) {
      var id = e.currentTarget.dataset.id
      wx.navigateTo({
        url: '/crowdfund/details/index?id=' + id,
      })
    }
  }
})